package slxy.jiangtao.dts.entity.business;

import slxy.jiangtao.dts.core.common.bean.BaseId;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Code must be sexy
 * Created by Jiang Tao on 2017/4/17.
 * 说明：任务实体类
 */
@Entity
@Table(name = "task", schema = "dts", catalog = "")
public class Task extends BaseId {
    @Basic
    @Column(name = "name",nullable = false)
    private String name;
    @Basic
    @Column(name = "organizationtor")
    private String organizationtor;//负责人
    @Basic
    @Column(name = "creator")
    private String creator; //创建人
    @Basic
    @Column(name = "creat_time")
    private String creatTime;
    @Basic
    @Column(name = "execute_time")
    private String executeTime;//任务执行时间
    @Basic
    @Column(name = "state")
    private Integer state;//任务状态（0：未开始；1：完成）
    @Basic
    @Column(name = "timelength")
    private Double timelength;//任务执行时间长
    @Basic
    @Column(name = "place",length = 255)
    private String place;//任务执行地点
    @Basic
    @Column(name = "remark")
    private String remark;//备注
    @Basic
    @Column(name = "type")
    private Integer type;//任务类型
    @Basic
    @Column(name = "phone")
    private String phone;//备注contactstor
    @Basic
    @Column(name = "contactstor")
    private String contactstor;//备注
    @Basic
    @Column(name = "files")
    private String files;//附件


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }


    public String getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(String creatTime) {
        this.creatTime = creatTime;
    }


    public String getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(String executeTime) {
        this.executeTime = executeTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getOrganizationtor() {
        return organizationtor;
    }

    public void setOrganizationtor(String organizationtor) {
        this.organizationtor = organizationtor;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Double getTimelength() {
        return timelength;
    }

    public void setTimelength(Double timelength) {
        this.timelength = timelength;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getContactstor() {
        return contactstor;
    }

    public void setContactstor(String contactstor) {
        this.contactstor = contactstor;
    }

    public String getFiles() {
        return files;
    }

    public void setFiles(String files) {
        this.files = files;
    }
}
